// vite.config.js
import { defineConfig, loadEnv } from "file:///E:/web/node%E9%A1%B9%E7%9B%AE/moveWeb/app/node_modules/vite/dist/node/index.js";
import react from "file:///E:/web/node%E9%A1%B9%E7%9B%AE/moveWeb/app/node_modules/@vitejs/plugin-react/dist/index.mjs";
import postcssPxToViewport from "file:///E:/web/node%E9%A1%B9%E7%9B%AE/moveWeb/app/node_modules/postcss-px-to-viewport-8-plugin/lib/index.js";
var allConfig = {
  build: {
    outDir: "../../movieServer/dist"
    // 打包文件输出目录
  },
  envDir: "env",
  plugins: [react()],
  css: {
    postcss: {
      plugins: [
        postcssPxToViewport({
          unitToConvert: "px",
          viewportWidth: (file) => {
            let num = 1280;
            if (file.indexOf("van") > 0) {
              num = 375;
            }
            return num;
          },
          unitPrecision: 5,
          // 单位转换后保留的精度
          propList: ["*"],
          // 能转化为vw的属性列表
          viewportUnit: "rem",
          // 希望使用的视口单位
          fontViewportUnit: "rem",
          // 字体使用的视口单位
          selectorBlackList: ["ignore-"],
          // 需要忽略的CSS选择器，不会转为视口单位，使用原有的px等单位。
          minPixelValue: 1,
          // 设置最小的转换数值，如果为1的话，只有大于1的值会被转换
          mediaQuery: true,
          // 媒体查询里的单位是否需要转换单位
          replace: true,
          //  是否直接更换属性值，而不添加备用属性
          exclude: [],
          // 忽略某些文件夹下的文件或特定文件，例如 'node_modules' 下的文件
          include: [],
          // 如果设置了include，那将只有匹配到的文件才会被转换
          landscape: false,
          // 是否添加根据 landscapeWidth 生成的媒体查询条件 @media (orientation: landscape)
          landscapeUnit: "rem",
          // 横屏时使用的单位
          landscapeWidth: 1628
          // 横屏时使用的视口宽度
        })
      ]
    }
  }
};
var vite_config_default = defineConfig((e) => {
  if (e.mode === "uat") {
    let config = loadEnv(e.mode, "./env/");
    const host = config.VITE_API_URL.match(/(?<=(http|https):\/\/)(.*)(?=:)/)[0];
    allConfig.server = { host };
  }
  return allConfig;
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJ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